package com.yun.zf.common.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 第三方登录表
 * </p>
 *
 * @author cj
 * @since 2020-09-23
 */
@Data
@TableName("sys_user_auth")
@ApiModel(value = "第三方登录表")
public class SysUserAuth implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * 第三方登录主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    private Long userId;
    /**
     * 第三唯一标识
     */
    @ApiModelProperty(value = "第三唯一标识")
    private String openId;

    /**
     * 第三标识
     */
    @ApiModelProperty(value = "登录类型，wx、qq、iphone")
    private String loginType;

    private int status;

    private String token;

    private String sessionKey;

    private String unionid;

    private Long iphone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime=new Date();




}
